using System;
using Avalonia.Controls;
using ZechatApp.ViewModels;

namespace ZechatApp.Views;

public partial class HomePageView : UserControl
{
    public HomePageView()
    {
        InitializeComponent();
        
        HomePageViewModel viewModel = new();
        
        Loaded += async (_, _) =>
        {
            await viewModel.StartListeningAsync();
            viewModel.LogMessages.Insert(0, "Start Inject Tool Listener.");
        };
    }
}